package com.xw.dao;

import com.xw.model.Orders;
import com.xw.model.OrdersItem;
import com.xw.util.MyMapper;
import com.xw.vo.OrdersItemVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface OrdersItemMapper extends MyMapper<OrdersItem> {
    List<OrdersItemVo> findByOrderNo(@Param("orderNo") String orderNo);

    List<String> findVideosIdByOrdersNo(@Param("ordersNo") String out_trade_no);

    Orders findOrdersByVideoId(@Param("userId")String userId,@Param("videoId") String videoId);

    int findOrdersIsDel(@Param("orderNo") String orderNo);
}